package com.stu.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component

@ConfigurationProperties(prefix = "stu.alioss")//指定resource中对应的配置文件
@Data
public class AliOssProperties {
    //从配置文件中获取值并打包成类
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
}
